package com.csi.service;

import com.csi.domain.Hotel;
import com.csi.domain.RoomType;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface HotelService {
    List<Hotel> hotHotel();

    List<Hotel> findAll();

    List<Hotel> like4book(Integer peopleNum, String cityLocation, String checkTime, String leaveTime);

    Map<String, Object> findHotelListById(long hotelId);

    List<Map<String, Object>> findRoomTypeById(long hotelId, String checkTime, String leaveTime);

    int save(Hotel hotel, MultipartFile[] multipartFiles);

    List<Hotel> findHotelByCity(String cityName);

    /**
     * 根据酒店id查询房型
     * @param hotelId 酒店id
     * @return 请求结果
     */
    List<RoomType> findAllRoomType(long hotelId);

    List<Map<String, Object>> findHotelByUserId(long userId);

    List<Map<String, Object>> findBillByLike(long userId, String status);

    String findHotelName(long hotelId);

    List<Hotel> discountedhotel();
}
